#!/bin/sh

sudo apt install -y build-essential cmake libopencv-dev libcaffe-cpu-dev libgflags-dev libgoogle-glog-dev libcublas-dev-11-8 cuda-toolkit-11-8
cmake -Bb -DCMAKE_BUILD_TYPE:STRING=Release -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda .
cmake --build b

./b/classify \
 bvlc_reference_caffenet/deploy.prototxt \
 bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel \
 imagenet_mean.binaryproto \
 synset_words.txt \
 cat.jpg
